<div class="wrap bw" style="padding-top:8px">
    <div class="topic-head userTopicFix">
        <div class="user-ico fl">
            <router-link :to="{ name: 'user/home', params: { user_id: item.user_id }}"> <img :src="item.user.headimg"></router-link>
        </div>
        <div class="user-info fl">
            <span class="fs-12">{{item.user.nickname}}</span>
            <br><span class="light-color fs-10">{{item.time_tran}} 发布</span>
        </div>
        <div class="topic-share fr" :title="item.title" :id="item.id" :imgUrl="item.coverImage" v-on:click="share($event)"><i class="ico ico_share"></i><span class="light-color-2">分享</span></div>
        <div class="clearfix"></div>
    </div>
    <div class="clearfix"></div>
</div>
<div class="page-content">
    <div class="wrap" style="margin-top:29px">
        <!-- 参与活动列表 -->
        <div class="topic-detail">
            <div class="topic-one bw" style="padding-top:0px">
                <div class="topic-content ">
                    <div class="img-list">
                        <template v-for="image in item.imgList">
                            <img v-on:click="previewImage($event)" :src="image+'?x-oss-process=image/resize,w_1000'">
                        </template>
                    </div>
                    <div v-html='item.content' class="img-text fs-14"> </div>
                </div>
                <!-- 点赞人数 -->
                <div  :class="item.goods_count >0?'topic-act':'topic-act none' " id="goodListDiv" >
                    
                  
                    <template v-for="image in item.goodList">
                        <img v-if="image && image.user" :src="image.user.headimg" :data-id="image.user.user_id">
                    </template>
                   
                    <span class="light-color-2">等
                    <font class="red" v-if="item.goods_count<99">{{item.goods_count}}</font>
                    <font class="red" v-if="item.goods_count>99">99+</font>
                    人点赞</span>
                </div>
                <!-- 点赞人数 -->
            </div>
        </div>
        <!-- 参与活动列表 -->
        <!-- 评论列表 -->
        <div class="comment-list bw" v-if="commentList.length">
            <div class="comment-title">评论（{{item.comment_count}}）</div>
            <div class="comment-one" :data-id="vo.id" :data-user-id="vo.user_id" :data-nickname="vo.user.nickname" v-on:click="handle($event)" v-for="vo in commentList">
                <div class="comment-head">
                    <div class="user-ico fl" style="margin-top:4px">
                        <img :src="vo.user.headimg">
                    </div>
                    <div class="user-info fl" style="margin-top:7px">
                        <span class="fs-12">{{vo.user.nickname}} <template v-if="vo.user_id == item.user_id">（楼主）</template></span>
                    </div>
                    <div class="topic-share fr"><span class="light-color fs-10">{{vo.time_tran}}</span></div>
                    <div class="clearfix"></div>
                </div>
                <div class="comment-content">
                    <template v-if="vo.comment"><a>@{{vo.comment.user.nickname}}</a></template><span v-html="vo.content"></span></div>
            </div>
        </div>
    </div>
    <div style="height:50px"></div>
</div>


 
 <router-link v-if="item.events.expire_date_limit >0" :to="{ name: 'index'}" id="s_top2" >
    <i class="ico ico_to_evenst"></i>
    <div class="s_top_text">前往活动</div>
</router-link>
 

<template v-else>
      <router-link :to="{ name: 'eventAward', params: { id: item.pid ,type:'awards'}}" id="s_top2" >
   <i class="ico ico_to_evenst"></i>
    <div class="s_top_text">前往活动</div>
</router-link>
 </template>

<!-- 我要参与 -->
<div class="bottom-fixed">
    <div class="">
        <ul class="fl topic-bnts" style="margin-top:8px;">
            <li :data-id="item.id" v-on:click="add_goods(item.id)">
                <div :class="item.has_good?'active':''"><i class="ico-goods"></i>
                  <span class="good_text">{{good_text}}</span>
                </div>
                 
            </li>
            <li v-on:click="showAddComment($event)"> 
            <i class="ico ico_comment" style=" margin-top: 0px;    width: 18px;height: 18px; margin-left: 3px; margin-bottom: 3px"></i>
                <br><span>留言</span></li>
            <li class="delete" v-if="user_info.user_id == item.user_id && item.is_best !=1" v-on:click="delTopic($event)"> 
             <i class="ico ico_delete" style=" margin-top: 0px;    width: 18px;height: 18px; margin-left: 3px; margin-bottom: 3px"></i>
                <br><span>删除</span></li>
        </ul>
        <div class="fr" v-if="item.events.expire_date_limit>0">
            <router-link :to="{ name: 'add',params:{pid:item.pid,title:item.events.topic}}" class="join-btn"></router-link>
        </div>
    </div>
</div>
